package cn.zl.api.dto.user;

import cn.yunbamboos.rest.service.dto.in.GenericInDTO;
import com.alibaba.fastjson2.JSONObject;

public class ChangeUserPasswordInDTO extends GenericInDTO {

    private String oldPassword;

    private String newPassword;

    @Override
    public void decode(JSONObject json) {
        super.decode(json);
        this.oldPassword = this.getString(json, "old_password");
        this.newPassword = this.getString(json, "new_password");
    }

    public String getOldPassword() {
        return oldPassword;
    }

    public String getNewPassword() {
        return newPassword;
    }
}
